#ifndef __MENU_H__
#define __MENU_H__

#include "my_sys.h"
#include "my_lib/my_log.h"
#include "my_lib/button.h"
#include "oled.h"

#include "my_lib/beep.h"
#include "my_lib/my_log.h"
#include "my_lib/follow.h"
#include "my_lib/communication.h"


#include "FreeRTOS.h"
#include "task.h"
// #include "semphr.h"

#define MAX_MENU_ITEMS 25      // 最大菜单项数量


typedef struct {
    uint8_t current_id;
    uint8_t up_id;          // 父菜单项编号
    uint8_t down_id;           // 子菜单项编号
    uint8_t enter_id;
    uint8_t return_id;
    void (*function)(void);         // 菜单项执行函数
}MenuItem;



typedef struct 
{
    double HorizontalAngle;
    double VerticalAngle;
}point_angle_t;

void MenuTask(void* param);

#endif

